<html>
<head>
<title>Edit a record of event_user_blog</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link media="all" href="/cms/css/cms.min.css" type="text/css" rel="stylesheet" /> 
<link rel="stylesheet" type="text/css" href="/cms/css/tag/token-input.css" />
<script  type="text/javascript" src="/cms/js/cms.1.1.min.js"></script>
<script type="text/javascript" src="/cms/js/tag/jquery.tokeninput.js"></script>
<script language="JavaScript" src="/cms/js/cleditor/jquery.cleditor.min.js"></script>
<!--change to auto add JS later-->
<script language="JavaScript" src="/cms/js/jquery.validate.js"></script>
<script language="JavaScript" src="/cms/js/autocomplete/textarea.js"></script>

<link media="all" href="/cms/js/jcrop/css/jquery.Jcrop.css" type="text/css" rel="stylesheet"> 
</head>

<body>
{#include file="$navigation"#}
<div style="float:right;" id="login"></div>
<script>
$(document).ready(function() {	

});	
  function validate_form(form){
	  if (validator.form())  form.submit(); else alert('Some fields has error. Please check and resubmit');
  }
</script>

<H1><span id="parent_key_label"></span>Edit a record of  Event user blog</H1>
<form name="form_edit" id="form_edit" method="post" action="{#$self_url#}" enctype="multipart/form-data">	
<div class='tableWrapper' style="width:100%;margin:0;padding:0;">
  <div class='tableHeader' >

	<ul class="tableActions">
	
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_update'; form.submit();" type="button"></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>  
<li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 刪除 " onclick="form.action.value='del'; form.submit();" type="button"></li>
	</ul>

  <div class='clear'></div>
  <div class='corner left'></div>
  <div class='corner right'></div>
  </div>	
	
<table border="0" cellspacing='0' >
<tr id="tr_id"><td><B>id</B></td>
<td id="td_id">{#$edit_data.id#}</td></tr>
<tr id="tr_oid"><td><B>oid</B></td>
<td id="td_oid"><input id="field_oid" type="text" name="oid" value="{#$edit_data.oid#}"></td></tr>
<tr id="tr_photo1"><td><B>photo1</B></td>
<td id="td_photo1">
  	<script type="text/javascript">
  	CMS.image_uplaod.show('{#$edit_data.photo1_image1#}','{#$edit_data.photo1_image2#}',
  	'{#$edit_data.photo1_imagesize1#}','{#$edit_data.photo1_imagesize2#}'); </script>
  	<BR/>
<input type="file" name="photo1"> ( 支持：jpg,gif,jpeg,png,JPG,GIF,JPEG,)<label><input type="checkbox" name="photo1_clear" value="1" />清除</label><br/></td></tr>
<tr id="tr_photo2"><td><B>photo2</B></td>
<td id="td_photo2">
  	<script type="text/javascript">
  	CMS.image_uplaod.show('{#$edit_data.photo2_image1#}','{#$edit_data.photo2_image2#}',
  	'{#$edit_data.photo2_imagesize1#}','{#$edit_data.photo2_imagesize2#}'); </script>
  	<BR/>
<input type="file" name="photo2"> ( 支持：jpg,gif,jpeg,png,JPG,GIF,JPEG,)<label><input type="checkbox" name="photo2_clear" value="1" />清除</label><br/></td></tr>
<tr id="tr_photo3"><td><B>photo3</B></td>
<td id="td_photo3">
  	<script type="text/javascript">
  	CMS.image_uplaod.show('{#$edit_data.photo3_image1#}','{#$edit_data.photo3_image2#}',
  	'{#$edit_data.photo3_imagesize1#}','{#$edit_data.photo3_imagesize2#}'); </script>
  	<BR/>
<input type="file" name="photo3"> ( 支持：jpg,gif,jpeg,png,JPG,GIF,JPEG,)<label><input type="checkbox" name="photo3_clear" value="1" />清除</label><br/></td></tr>
<tr id="tr_link"><td><B>link</B></td>
<td id="td_link"><input id="field_link" type="text" name="link" value="{#$edit_data.link#}"></td></tr>
<tr id="tr_title"><td><B>標題</B></td>
<td id="td_title"><input id="field_title" type="text" name="title" value="{#$edit_data.title#}"></td></tr>
<tr id="tr_body"><td><B>內容</B></td>
<td id="td_body"><input id="field_body" type="text" name="body" value="{#$edit_data.body#}"></td></tr>
<tr id="tr_sequence"><td><B>次序(小至大)</B></td>
<td id="td_sequence"><input id="field_sequence" type="text" name="sequence" value="{#$edit_data.sequence#}"></td></tr>
<tr id="tr_addedby"><td><B>建立者</B></td>
<td id="td_addedby">{#$edit_data.addedby#}</td></tr>
<tr id="tr_modifiedby"><td><B>更新者</B></td>
<td id="td_modifiedby">{#$edit_data.modifiedby#}</td></tr>
<tr id="tr_approvedby"><td><B>審核者</B></td>
<td id="td_approvedby">{#$edit_data.approvedby#}</td></tr>
<tr id="tr_status"><td><B>上線狀態</B></td>
<td id="td_status">{#$edit_data.status#}</td></tr>
<tr id="tr_addtime"><td><B>建立時間</B></td>
<td id="td_addtime">{#$edit_data.addtime#}</td></tr>
<tr id="tr_lastmodify"><td><B>更新時間</B></td>
<td id="td_lastmodify">{#$edit_data.lastmodify#}</td></tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="hidden" name="id" value="{#$edit_data.id#}">
     	
    <input type="hidden" name="action" value="update"><input name="subaction" type="hidden">
	<ul class="tableActions">
    
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_update'; form.submit();" type="button"></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>  
<li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 刪除 " onclick="form.action.value='del'; form.submit();" type="button"></li>
	</ul>
  </td>
  </tr>
</table>

</form> 

<script type="text/javascript">
$(function(){
  $(".tips").tipTip({defaultPosition: "right", edgeOffset: 10});
});
</script>

<!--POSTRUNJS-->
</body>
</html>
